#import <Cocoa/Cocoa.h>

@interface myController : NSObject {
	IBOutlet NSWindow *theWindow;
	IBOutlet NSTextView *theTextView;
	IBOutlet NSMatrix *theSex;
	IBOutlet NSSlider *theSpeedField;
	
	IBOutlet NSWindow *theDebugWindow;
	IBOutlet NSTextView *theDebugTextView;
	
	IBOutlet NSWindow *theMecabWindow;
	IBOutlet NSTextView *theMecabTextView;

	NSString *saykana;
	NSString *mecab;
	
	NSString *dir;
	NSString *shellscript;
	
	BOOL isSaveSettings;
	
	// メッセージ受信用
	NSDistributedNotificationCenter *nCenter;
}

- (void)checkCommand : (NSString *)path;

- (NSString *) executeMecab : (NSString *)_message;
- (NSString *) HiraFromKanji : (NSString *)_message;

- (void)saykana : (NSString *)_message
	   filepath : (NSString *)_filepath;
- (IBAction)sayAction : (id)sender;
- (IBAction)clearAction : (id)sender;
- (IBAction)saveAction : (id)sender;
- (NSString *)Util_GetMyAppDirectory;

- (IBAction)openDebugWindowAction : (id)sender;
- (IBAction)openMecabWindowAction : (id)sender;

- (void)receive : (NSNotification *) notification;


@end
